package com.onlyyou.storage.queue;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author XiaoYe
 * @Time 2019/11/26 21:00
 * MQConfig
 */
@Configuration
public class MQConfig {
    @Bean
    public Queue queueStorage(){
        return new Queue("storage_queue", true);
    }
}
